<!-- canvas -->
<template>
  <div class="photo-container">
    <div>
      <span v-if="!imageData">未添加图片</span>
      <img v-if="imageData" :src="imageData" width="100px" />
    </div>
    <button class="btn" @click="clickHandler">签字</button>
  </div>
</template>

<script>
export default {
  name: 'test4-photo',
  props: {
    imageData: String,
  },
  data() {
    return {}
  },
  methods: {
    clickHandler() {
      this.$emit('click')
    },
  },
}
</script>
<style  scoped>
.photo-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
}
</style>